﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace SPW.Component
{
    public static class IconAssist
    {
        /// <summary>
        /// The hint property
        /// </summary>
        public static readonly DependencyProperty KindProperty = DependencyProperty.RegisterAttached(
            "Kind",
            typeof(object),
            typeof(IconAssist),
            new FrameworkPropertyMetadata(default(string), FrameworkPropertyMetadataOptions.Inherits));

        /// <summary>
        /// Sets the hint.
        /// </summary>
        /// <param name="element">The element.</param>
        /// <param name="value">The value.</param>
        public static void SetKind(DependencyObject element, object value)
        {
            element.SetValue(KindProperty, value);
        }

        /// <summary>
        /// Gets the hint.
        /// </summary>
        /// <param name="element">The element.</param>
        /// <returns>
        /// The <see cref="string" />.
        /// </returns>
        public static object GetKind(DependencyObject element)
        {
            return element.GetValue(KindProperty);
        }
    }
}
